<?php
//пароль
if (!defined('INWEB')) {
    Header("Location: ../index.php");
}
$tp = explode(" ", microtime());
$starttime = $tp[1] . substr($tp[0], 1);
session_start();

define('INCONFIG', true);
$DB = array(
    "host"      => "localhost", //MySQL Host
    "user"      => "root",      //MySQL User
    "password"  => "agagag",    //MySQL Password
    "database"  => "db"         //MySQL DataBase
);

require_once ('queries.php');
require_once ('class.mysql.php');
$sql = new MySQL($DB);
require_once ('class.user.php');
$user = new user();
require_once ('class.tplParser.php');
require_once ('class.cache.php');

$query = $sql->query($q[0]);
while ($row = $sql->fetch_array($query)) {
    $CONFIG[$row['type']][$row['name']] = stripslashes($row['value']);
}

require_once ('include/functions.php');
$host=getHost();


//$cache = new Cache(getConfig('cache','enabled','1'));
if (!getConfig('debug','web','0')) {
    error_reporting(0);
}
$tpl = new tplParser('default');
?>